<%--
功能: 显示时间，默认格式是  yyyy-MM-dd HH:mm:ss
--%>
<%@ tag body-content="empty"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ tag import="com.probiz.estore.common.helper.ConfigUtil" %>
<%@ attribute name="date" type="java.util.Date" required="true"%>
<%@ attribute name="pattern" required="false"%>
<%
	request.setAttribute("defaultPattern",ConfigUtil.getInstance().getDateTimePattern());
 %>
<fmt:formatDate value="${date}"  pattern="${(not empty pattern)?pattern:defaultPattern}"/>